<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FLV Video Player</title>
</head>
<body>
<h1>FLV Video Player</h1>
<video id="videoElement" controls width="600" height="400"></video>

<!-- 引入 FLV.js -->
<script src="https://cdn.jsdelivr.net/npm/flv.js@1.5.0/dist/flv.min.js"></script>

<script>
    if (flvjs.isSupported()) {
        var videoElement = document.getElementById('videoElement');
        var flvPlayer = flvjs.createPlayer({
            type: 'flv',
            url: 'http://localhost:7788/live/test.live.flv'  // 替换为你的 FLV 视频路径
        });
        flvPlayer.attachMediaElement(videoElement);
        flvPlayer.load();
        flvPlayer.play();
    } else {
        console.error('FLV.js is not supported in this browser.');
    }
</script>
</body>
</html>
